home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 919 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.0 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 12 Jan 1996 17:45:11 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4d66n7$h7i@sunsystem5.informatik.tu-muenchen.de>
  9. References: <jasonb.820919731@cs.uwa.edu.au> <4com6v$415@maureen.teleport.com> <jasonb.821098303@cs.uwa.edu.au> <4crfb9$djs@maureen.teleport.com> <4cro82$mrh@serpens.rhein.de> <4cselp$9dv@maureen.teleport.com> <4ctghg$bq@serpens.rhein.de> <4cv5j8$dn6@sunsystem5.informatik.tu-muenchen.de> <4d0k1i$asm@serpens.rhein.de>
  10. NNTP-Posting-Host: hphalle8a.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle8a.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <4d0k1i$asm@serpens.rhein.de>, mlelstv@serpens.rhein.de (Michael van Elst) writes:
  15. |> fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) writes:
  16.  
  17. |> You have problems with the english language.
  18. |> 
  19. |> You said that you can't see how many bytes are written in
  20. |> 
  21. |> *a++ = *b++;
  22. |> 
  23. |> but you can in
  24. |> 
  25. |> move.w (a0)+,(a1)+
  26. |> 
  27. |> And you said this was an advantage.
  28.  
  29. This is true, I said in the special case I mentioned it's an advantage,
  30. and I stressed I only tell about this case: 
  31.  
  32. - debugging this line
  33. - having not included the type definitions in the C-case, but defined
  34.   it buggily char * in the header.
  35.  
  36. for this special case, if the routine is for example to copy an array
  37. to colorregisters, a move.b will hit my eyes, while in the C case I
  38. would maybe rather scan the instructions around for bugs.
  39.  
  40. If you flame me because your oppinion is, that also in this special
  41. case C is an advantage,  because, uhm... for example the qustion
  42. "wait a minute, what is that *p++ doing" comes to your mind everytime
  43. you see a pointer, and so you look at the type definition and find the
  44. bug (just an example), then ok.
  45.  
  46. |> 
  47. |> >but as Michael van Elst uses to
  48. |> >add "preconditions" to claims...
  49. |> 
  50. |> Again you have problems with the language. You are adding preconditions.
  51.  
  52. Yes, me, too, but to MY claims, not to the ones of others.
  53.  
  54. I could prove all your 100% rkm style code wrong if I used the
  55. precondition "does it work under MS-DOS 3.1" ;)
  56.  
  57. |> 
  58. |> >Yes, I would say an assembler programmer has to care about the wordsize
  59. |> >in each instruction. But I never said that this is an advantage.
  60. |> 
  61. |> You are lying.
  62.  
  63. Naaah. Look, "in each instruction". This is about generally writing
  64. code. I wanted to give a special counter example where the asm version
  65. is more clear.
  66.  
  67. begin :) mode
  68.  
  69. The thing is, you maybe WANT me to tell "it is gernerally a advantage 
  70. of assembler, that you got to do all the type conversions", because
  71. maybe you need a reason to get rid of the daily 'c00l c0d3r' ;)
  72.  
  73. :)
  74.  
  75.  
  76. |> -- 
  77. |>                                 Michael van Elst
  78. |> 
  79. |> Internet: mlelstv@serpens.rhein.de
  80. |>                                 "A potential Snark may lurk in every tree."
  81. ------------------------------------------------------------------------
  82.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  83.